from django.urls import path, re_path
from rest_framework_jwt.views import obtain_jwt_token
from . import views

urlpatterns = [

    re_path(r'^gatherings/$',views.GatheringsViewSet.as_view({'get':'list'})),
    re_path(r'^gatherings/(?P<pk>\d+)/$',views.GatheringsViewSet.as_view({'get':'retrieve'})),
    re_path(r'^gatherings/(?P<pk>\d+)/join/$',views.GatherJoinView.as_view()),


]
